﻿<%@ Page Language="C#" MasterPageFile="~/Management/ManagementMasterPage.master" AutoEventWireup="true" CodeBehind="orderlist.aspx.cs" Inherits="WebApp.Management.Product.orderlist" Title="订单管理" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphContent" runat="server">
<div>
<table>
    <tr>
        <td>订单号:</td>
        <td>
            <asp:TextBox ID="txtOrderNum" Width="100px" runat="server"></asp:TextBox></td>
        <td>会员登陆名:</td>
        <td> <asp:TextBox ID="txtUserName" Width="100px" runat="server"></asp:TextBox></td>
        <td>会员电话号码:</td>
        <td> <asp:TextBox ID="txtTel" Width="100px" runat="server"></asp:TextBox></td>
        <td> <asp:CheckBox ID="ckboxRefund" runat="server" Text="申请退款" /></td>
        <td></td>
        <td>
            <asp:Button ID="btnSearch" runat="server" Text="查询" onclick="btnSearch_Click" /></td>
           
    </tr>
</table>
</div>
<asp:ListView ID="lvActivity" runat="server" 
        onitemcommand="lvActivity_ItemCommand" 
        OnPagePropertiesChanged="lvActivity_PagePropertiesChanged">
		<LayoutTemplate>
			<table cellpadding="2"  border="1">
				<tr>
					
					<th>订单号 </th>
				    <th>订单时间 </th>
					<th>客户姓名 </th>
                    <th>手机号码 </th>
                    <th>邮箱 </th>
				    <th>状态</th>
					<th>商品价格</th>
					<th>运费</th>
					<th>地址</th>
                    <th>物流单号</th>
					<th>快递公司</th>
					<%--<th>是否支付</th>
					<th>订单人群</th>--%>
					<th> 编辑</th>
				</tr>
				<asp:PlaceHolder id="itemPlaceholder" runat="server"/>
			</table>
			<asp:DataPager ID="dpActivity" runat="server" PagedControlID="lvActivity" PageSize="20">
				<Fields>
					<asp:NextPreviousPagerField ButtonType=Link ShowFirstPageButton="True" ShowNextPageButton="False"
						ShowPreviousPageButton="False" />
					<asp:NumericPagerField />
					<asp:NextPreviousPagerField ButtonType=Link ShowLastPageButton="True" ShowNextPageButton="False"
						ShowPreviousPageButton="False" />
				</Fields>
			</asp:DataPager>
		</LayoutTemplate>
		<ItemTemplate>
			<tr>
				<td>
				<a href="orderdetilist.aspx?PID=<%# Eval("OrderId") %>" ><%#Eval("OrderNum")%></a>
				</td>
				<td>
					<%# Eval("CreateTime")%>
				</td>
				<td>
				<%# Eval("DeliveryUserName")%>
				</td>
				<td>
				<%# Eval("DeliveryCellPhone")%>
				</td>
				<td>
				<%# Eval("DeliveryTel")%>
				</td>
				<td>
				<%# Eval("State")%>
				</td>
				<td>
				<%# Eval("Price")%>
				</td>
				<td>
				<%# Eval("DeliveryPrice")%>
				</td>
				<td>
				<%# Eval("DeliveryAddress")%>
				</td>
                <th><%# Eval("logisticsNum")%></th>
				<td>
				<%# Eval("ExpressNum")%>
				</td>
				<%--<td>
				<%# Eval("Valid")%>
				</td>
				<td>
				<%# Eval("Remark")%>
				</td>--%>
				<td>
					<a href=orderEites.aspx?PID=<%# Eval("OrderId") %>>Edit</a>
					<asp:LinkButton ID="btnDelete" runat="server" CommandName="OnDelete" CommandArgument='<%# Eval("OrderId") %>'>Delete</asp:LinkButton>
				</td>
			</tr>
		</ItemTemplate>
	</asp:ListView>

</asp:Content>
